//
//  DeviceCell.h
//  DYLYJ
//
//  Created by JM on 15/10/24.
//  Copyright © 2015年 JM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Device.h"
#import "XXNibBridge.h"
#import "MDYCell.h"
@interface DeviceCell : MDYCell <DYSMSProtocol> // Enable nib bridge>
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *stateLabel;
@property (weak, nonatomic) IBOutlet UISwitch *openSwitch;
@property (strong, nonatomic) Device *device;

- (void) update;
+ (NSString *)xib;
+ (NSString *)ID;
+ (instancetype)cell;
+ (NSInteger)height;
- (void)setDevice:(Device *)device;
@end
